<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS 三种价格表样式</title>
</head>
<body>
<h1>响应式价格表</h1>
<p>重置浏览器查看效果</p>


<div class="columns">
    <ul class="price">
        <li class="header">Basic</li>
        <li class="grey">$ 9.99 / year</li>
        <li>10GB Storage</li>
        <li>10 Emails</li>
        <li>10 Domains</li>
        <li>1GB Bandwidth</li>
        <li class="grey"><a href="#" class="button">Sign Up</a></li>
    </ul>
</div>

<div class="columns">
    <ul class="price">
        <li class="header pro" >Pro</li>
        <li class="grey">$ 24.99 / year</li>
        <li>25GB Storage</li>
        <li>25 Emails</li>
        <li>25 Domains</li>
        <li>2GB Bandwidth</li>
        <li class="grey"><a href="#" class="button">Sign Up</a></li>
    </ul>
</div>

<div class="columns">
    <ul class="price">
        <li class="header">Premium</li>
        <li class="grey">$ 49.99 / year</li>
        <li>50GB Storage</li>
        <li>50 Emails</li>
        <li>50 Domains</li>
        <li>5GB Bandwidth</li>
        <li class="grey"><a href="#" class="button">Sign Up</a></li>
    </ul>
</div>
</body>
<style>
    body{
        text-align: center;
        box-sizing: border-box;
    }
    .price{
        border: 1px solid #eee;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
    .columns{
     width: 33.33%;
        float: left;

    }
    .pro{
        background-color: green !important;
    }
    .header{

        background-color: black;
        color: white;
    }
    .grey{
        background-color: grey;

    }
    li{
        padding: 16px 32px;
    }
    .button{
        text-decoration: none;
        color: white;
        background-color: green;
        padding: 8px 16px;
    }
    .columns:hover{
        box-shadow: 0 8px 12px 0 rgba(0,0,0,0.2);
        text-align: center;

    }
    @media only screen and (max-width: 600px) {
        .columns{
            width: 100%;
        }
    }


</style>
</html>
